<%@ page import="Sample.Student"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%
		Sample.Student student = new Sample.Student();
		student.setName("John");
		student.setId("0111984");
		
		/* //request scop
		request.setAttribute("stu", student);//key & object
		request.getAttribute("stu");//key & object
		
		//session scop
		session.setAttribute("stu", student);//key & object
		session.getAttribute("stu");//key & object
		
		//application scop
		application.setAttribute("stu", student);//key & object
		application.getAttribute("stu");//key & object
		
		
		
		//
		out.print("Protocol " + request.getScheme() + "<br/>");
		out.print("Port " + request.getServerPort() + "<br/>");
		out.print("Context path " + request.getContextPath() + "<br/>"); */
	%>

	<%-- <%@ include file="include.jsp" %> --%>

	<%-- method 1: Using  --%>

	<%-- <jsp:include page="include.jsp">
		<jsp:param value="<%=student.getName() %>" name="studentName"/>
		<jsp:param value="<%=student.getId() %>" name="studentID"/>
	</jsp:include> --%>


	<%-- method 2: Using request implicit Objects -->
	 <%--
	 <%
	 	request.setAttribute("stu", student);	 	
	 %>
	 <%@ include file="include.jsp" %>
	 --%>

	<!--  Forward demo: send request to other -->
	<%-- 	 <jsp:forward page="Forward.jsp"> --%>
	<%-- 		<jsp:param value="<%=student.getName() %>" name="studentName"/> --%>
	<%-- 		<jsp:param value="<%=student.getId() %>" name="studentID"/> --%>
	<%-- 	</jsp:forward> --%>
</body>
</html>